package com.huang.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PostMapping;

@Controller
public class Enconding {
    //过滤器解决乱码
    @PostMapping("/B/C")
    public String test(String name,Model model){
        model.addAttribute("msg",name);
        return "hello";
    }
}
